package com.xdf.docmanagementsystem.dao;

import com.xdf.docmanagementsystem.common.util.Example;
import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.docmanagementsystem.entity.Department;
import org.apache.ibatis.annotations.Param;
/**
* @Description : 部门
* @Author : ZK
* @Date : 2020-06-20 13:34:16
*/
@Repository
public interface DepartmentMapper{
    int insert(Department record);

    int insertSelective(Department record);

    int multiInsert(List<Department> list);

    int insertDumplicateKeyUpdate(Department record);

    int updateByPrimaryKey(Department record);

    int updateByPrimaryKeySelective(Department record);

    int multiUpdate(List<Department> list);

    int deleteByPrimaryKey(Integer id);

    Department selectByPrimaryKey(Integer id);

    List<Department> selectAll();

    List<Department> selectByParam(Department record);

    int updateByExampleSelective(@Param("record") Department record,@Param("example") Example example);

    int deleteByExample(@Param("example") Example example);

    List<Department> selectByExample(@Param("example") Example example);

    int insertByExampleSelective(@Param("record") Department record,@Param("example") Example example);
}